﻿package control
{
    import com.core.*;

    public class TaskControl extends Control
    {

        public function TaskControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "tasktrack")
            {
                if (param2.property == "init")
                {
                    this.target.init(param2.newvalue);
                }
                else if (param2.property == "changestate")
                {
                    this.target.changeState(param2.newvalue);
                }
                else if (param2.property == "changegoal")
                {
                    this.target.changeGoal(param2.newvalue);
                }
                else if (param2.property == "dosome")
                {
                    this.target.doSome(param2.newvalue);
                }
                else if (param2.property == "togoal")
                {
                    this.target.togoal(param2.newvalue);
                }
                else if (param2.property == "updategoal")
                {
                    this.target.updateGoal(param2.newvalue);
                }
                else if (param2.property == "lvupdate")
                {
                    this.target.lvUpdate();
                }
                else if (param2.property == "showguide")
                {
                    this.target.showGuide();
                }
                else if (param2.property == "getonline")
                {
                    this.target.updateRoleData();
                }
                else if (param2.property == "updatefly")
                {
                    this.target.upDateFly();
                }
                else if (param2.property == "startHdGcz")
                {
                    this.target.startHDGCZ();
                }
                else if (param2.property == "stopHdGcz")
                {
                    this.target.stopHDGCZ();
                }
                else if (param2.property == "updateHdGcz")
                {
                    this.target.gongcheng.updateHdGcz(param2.newvalue);
                }
                else if (param2.property == "updateMonsterTime")
                {
                    this.target.gongcheng.updateMonsterTime(param2.newvalue);
                }
                else if (param2.property == "showActive")
                {
                    this.target.showActive(param2.newvalue);
                }
                else if (param2.property == "closeActive")
                {
                    this.target.closeActive();
                }
                else if (param2.property == "autotask")
                {
                    this.target.autoTask();
                }
                else if (param2.property == "updatetaskheight")
                {
                    this.target.updateTask();
                }
                else if (param2.property == "findnpc")
                {
                    this.target.findNpc();
                }
                else if (param2.property == "checkdotask")
                {
                    this.target.checkDoTask();
                }
                else if (param2.property == "findstarnpc")
                {
                    this.target.findStarNpc();
                }
            }
            return;
        }// end function

    }
}
